import parser.*;
import syntaxTree.*;
import pass1.*;
   
public class Main {
  static public void main(String argv[]) {    
      //.java ==> tree (result)
      Program result = (Program)(new ParserMain (argv[0])).parseAst ();
      System.out.println (result.toString ());
      
      // tree ==> tree
      Convert c = new Convert ();
      Program result2 = c.convertProgram (result);
      
      System.out.println (result2.toString ());
  }
}


